
# 开发数据库
import datetime

import MySQLdb

conn = MySQLdb.Connect(host='127.0.0.1', port=3306, user='root', passwd='mysql', db='log_analysis', charset='utf8')
# 测试数据库
# conn = MySQLdb.Connect(host='192.168.1.238', port=3306, user='root', passwd='123456', db='log_analysis', charset='utf8')

cursor = conn.cursor()

log_name = 'lbcwx.lingxiu.top.log'



